# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-types-pyopenssl
_pkgname=types-pyOpenSSL
pkgver=24.1.0.20240722
pkgrel=3
pkgdesc='Typing stubs for pyopenssl.'
arch=('any')
url='https://pypi.org/project/types-pyOpenSSL/#files'
license=('Apache')
depends=('python' 'python-types-cryptography')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('251a9f981661d47f90a4f22c7bd0a97225de96e3f5d68fe08af60e281190c80b65f553521f1d204f470cb1fc33adefb61e4ef366a377acd1436ea23578f406c0')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

